package cn.yangliu.nacos.management.service.oauth2;

import cn.yangliu.jpa.base.service.JpaService;
import cn.yangliu.nacos.management.entity.oauth2.Oauth2Role;
import cn.yangliu.nacos.management.model.ClientRoleInsertModel;
import cn.yangliu.nacos.management.model.ClientRoleUpdateModel;

/**
 * The type of nacos.
 *
 * @author 问道于盲
 * @date 2020 -01-01
 */
public interface Oauth2RoleService extends JpaService<Oauth2Role,Long> {

    /**
     * Insert oauth 2 role.
     *
     * @param model the model
     * @return the oauth 2 role
     */
    Oauth2Role insert(ClientRoleInsertModel model);

    /**
     * Update oauth 2 role.
     *
     * @param model the model
     * @return the oauth 2 role
     */
    Oauth2Role update(ClientRoleUpdateModel model);
}
